package com.example.shopping.controller;

import com.example.shopping.pojo.Merchants;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @description: TODO
 * @author: uu
 * @data: 2023/6/29 17:31
 * @version: v1.0
 */
@RestController
public class LoginController {

    @Autowired
    com.example.shopping.service.Login login;

    @GetMapping("/login")
    public String Login(Merchants merchants){
        Boolean aBoolean = login.merchantsLogin(merchants);
        if (aBoolean){
            return "success";
        }
        return "fail";
    }
}
